<?php

use Phinx\Migration\AbstractMigration;

class AddIsGenerateColumnInEntityTable extends AbstractMigration
{
    public function up()
    {
        $this->table("entity")
            ->addColumn('is_generated_follow', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => ' 是否已经生成后面数据'])
            ->save();
    }

    public function down()
    {
        $this->table("entity")->removeColumn("is_generated_follow")->save();
    }
}
